<script>
	import { getToken} from '@/utils/auth'
	export default {
		/* onLaunch: function() {
			let token = uni.getStorageSync('token');
			if(token){
				let url = "/pages/index/index";
				uni.navigateTo({
					url
				});
			}else{
				let url = '/pages/login/login';
				uni.navigateTo({
					url
				});
			}
			
		}, */
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang='scss'>
	/*每个页面公共css */
	/*
			全局公共样式和字体图标
		*/
		@font-face {
			font-family: yticon;
			font-weight: normal;
			font-style: normal;
			src: url('https://at.alicdn.com/t/font_1396515_a8p41v34rim.ttf') format('truetype');
		}
		
		// 以下为 style 区域
		.bg-img{
		    position: fixed;
			width: 100%;
			height: 102%;
			top: -3px;
			left: 0;
			z-index: -1;
		}
	
		.yticon {
			font-family: "yticon" !important;
			font-size: 16px;
			font-style: normal;
			-webkit-font-smoothing: antialiased;
			-moz-osx-font-smoothing: grayscale;
		}
		.icon-shezhi1:before {
			content: "\e68f";
		}
		.icon-share:before {
			content: "\e6af";
		}
		.icon-grzl:before {
				content: "\e62b";
		}
		.icon-tuichu:before {
				content: "\e624";
		}
		.icon-you:before {
			content: "\e775";
		}
		
		.icon-avatar1:before {
			content: "\e665";
		}
		.icon-wtbz:before {
			content: "\e642";
		}
		.icon-gnjs:before {
			content: "\e867";
		}
		.icon-jcbb:before {
			content: "\e687";
		}
		.icon-gyxt:before {
			content: "\e61b";
		}
	
	
		view,
		scroll-view,
		swiper,
		swiper-item,
		cover-view,
		cover-image,
		icon,
		text,
		rich-text,
		progress,
		button,
		checkbox,
		form,
		input,
		label,
		radio,
		slider,
		switch,
		textarea,
		navigator,
		audio,
		camera,
		image,
		video {
			box-sizing: border-box;
		}
		/* 骨架屏替代方案 */
		.Skeleton {
			background: #f3f3f3;
			padding: 20upx 0;
			border-radius: 8upx;
		}
	
	/*边框*/
	.b-b:after,
	.b-t:after {
		position: absolute;
		z-index: 3;
		left: 0;
		right: 0;
		height: 0;
		content: '';
		transform: scaleY(.5);
		border-bottom: 1px solid $border-color-base;
	}
	
	.b-b:after {
		bottom: 0;
	}
	
	.b-t:after {
		top: 0;
	}
		
	</style>
</style>
